<!--选择日期-->
{include file="pageheader.htm"}
<script type="text/javascript" src="../js/calendar.php?lang={$cfg_lang}"></script>
<link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />
<div class="form-div">
  <form action="" method="post" id="selectForm" name="selectForm">
    {$lang.select_date}&nbsp;&nbsp;
    <input name="date1" value="{$date1}" style="width:80px;" onclick="return showCalendar(this, '%Y-%m-%d', false, false, this);" />
    <input name="date2" value="{$date2}" style="width:80px;" onclick="return showCalendar(this, '%Y-%m-%d', false, false, this);" />
    <input type="submit" name="submit" value="{$lang.access_query}" class="button" />
  </form>
</div>
{insert_scripts files="../js/utils.js,listtable.js"}
<table width="100%" cellspacing="1" cellpadding="3">
     <tr>
      <th>{$lang.date}</th>
      <th>{$lang.pv}</th>
      <th>{$lang.uv}</th>
      <th>{$lang.all_order}</th>
      <th>{$lang.all_amount}</th>
      <th>{$lang.turnover}</th>
      <th>{$lang.per_sum}</th>
      <th>{$lang.ali_order}</th>
      <th>{$lang.ali_amount}</th>
      <th>{$lang.cash_order}</th>
      <th>{$lang.cash_amount}</th>
    </tr>
  {foreach from=$day item=list key=date}
    <tr align="center">
      <td>{$list.date}</td>
      <td>{$list.pv}</td>
      <td>{$list.uv}</td>
      <td>{$list.all_order}</td>
      <td>{$list.all_amount}</td>
      <td>{$list.turnover}</td>	
      <td>{$list.per_sum}</td>
      <td>{$list.ali_order}</td>
      <td>{$list.ali_amount}</td>
      <td>{$list.cash_order}</td>
      <td>{$list.cash_amount}</td>
    </tr>
  {foreachelse}
    <tr><td class="no-records" colspan="10">{$lang.no_records}</td></tr>
  {/foreach}
  </table>

  {include file="pagefooter.htm"}
<!--
{insert_scripts files="Chart.min.js"}
<div style="width:50%">
	<div>
		<canvas id="canvas" height="450" width="600"></canvas>
	</div>
</div>
	<script>
		var randomScalingFactor = function(){ return Math.round(Math.random()*100)};
		var lineChartData = {
			labels : ["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],
			datasets : [
				{
					label: "浏览量",
					fillColor : "rgba(220,220,220,0.2)",
					strokeColor : "rgba(220,220,220,1)",
					pointColor : "rgba(220,220,220,1)",
					pointStrokeColor : "#fff",
					pointHighlightFill : "#fff",
					pointHighlightStroke : "rgba(220,220,220,1)",
					data: {$data_pv}
				},
				{
					label: "访问量",
					fillColor : "rgba(151,187,205,0.2)",
					strokeColor : "rgba(151,187,205,1)",
					pointColor : "rgba(151,187,205,1)",
					pointStrokeColor : "#fff",
					pointHighlightFill : "#fff",
					pointHighlightStroke : "rgba(151,187,205,1)",
					data: {$data_uv}
				},
				{
					label: "总订单数",
					fillColor : "rgba(151,187,205,0.2)",
					strokeColor : "rgba(15,15,15,1)",
					pointColor : "rgba(15,15,15,1)",
					pointStrokeColor : "#fff",
					pointHighlightFill : "#fff",
					pointHighlightStroke : "rgba(151,187,205,1)",
					data: {$data_all_order}
				}
			]

		}

	window.onload = function(){
		var ctx = document.getElementById("canvas").getContext("2d");
		window.myLine = new Chart(ctx).Line(lineChartData, {
			responsive: true
		});
	}

	</script>

-->